package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface NursingLevelMapper {


    List<NursingLevel> listAll();

    Page<NursingLevelVo> search(String name, Integer status);

    void insert(NursingLevel nursingLevel);


    NursingLevel getNursingLevelById(Long id);

    void update(NursingLevel nursingLevel);

    @Delete("delete from nursing_level where id = #{id}")
    void deleteNursingLevelById(Long id);

    @Update("update nursing_level set status = #{status} where id = #{id}")
    void updateStatus(Long id, Integer status);
}
